home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Magazine / Morphos / GCC / os-includeppc / inline / alib.h next >
C/C++ Source or Header  |  1997-04-14  |  590b  |  24 lines

  1. #ifndef _INLINE_ALIB_H
  2. #define _INLINE_ALIB_H
  3.  
  4. #ifndef __INLINE_MACROS_H
  5. #include <inline/macros.h>
  6. #endif
  7.  
  8. #define BeginIO(ioReq) \
  9. ({                                    \
  10.     struct IORequest *_BeginIO_request = (ioReq);            \
  11.     LP1NR(0x1e, BeginIO, struct IORequest *, _BeginIO_request, a1,    \
  12.     , _BeginIO_request->io_Device);                    \
  13. })
  14.  
  15. #define NewList(list) \
  16. ({                                    \
  17.   struct List *_NewList_list = (list);                    \
  18.   _NewList_list->lh_TailPred = (struct Node *)_NewList_list;        \
  19.   _NewList_list->lh_Head = (struct Node *)&_NewList_list->lh_Tail;    \
  20.   _NewList_list->lh_Tail = 0;                        \
  21. })
  22.  
  23. #endif /* _INLINE_ALIB_H */
  24.